#!/bin/bash

retry=0
while [ $retry -lt 5 ]
do
  python manage.py migrate &&
  python minicli.py initdb &&
  break
  n=$(($n+1))
  echo "Failed during start pms, retry...($retry/5)"
  sleep 8
done

uwsgi __DEPLOY__/uwsgi.ini
